using UnityEngine;

public class FreeAppOfTheDayAndroid : FreeAppOfTheDay
{
	private AndroidJavaObject javaInstance;

	protected RuntimePlatform platform = RuntimePlatform.Android;

	public FreeAppOfTheDayAndroid()
	{
		if (Application.platform != platform)
		{
			return;
		}
		using (AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.giraffegames.unityutil.AppturboUnlockTools"))
		{
			javaInstance = androidJavaClass.CallStatic<AndroidJavaObject>("instance", new object[0]);
		}
	}

	public override bool IsPromoUser()
	{
		if (Application.platform != platform)
		{
			return true;
		}
		return javaInstance.Call<bool>("IsPromoUser", new object[0]);
	}
}
